<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui">

    <ui:composition>

        <p:dialog id="TransaccionEditDlg" widgetVar="TransaccionEditDialog" modal="true" resizable="false" appendToBody="true" header="#{bundle.EditTransaccionTitle}">

            <h:form id="TransaccionEditForm">

                <h:panelGroup id="display">
                    <p:panelGrid  columns="2" rendered="#{transaccionController.selected != null}">

                        <h:outputLabel value="#{bundle.EditTransaccionLabel_id}" for="id" />
                        <h:outputText id="id" value="#{transaccionController.selected.id}" />

                        <p:outputLabel value="#{bundle.EditTransaccionLabel_codigo}" for="codigo" />
                        <p:inputText id="codigo" value="#{transaccionController.selected.codigo}" title="#{bundle.EditTransaccionTitle_codigo}" />

                        <p:outputLabel value="#{bundle.EditTransaccionLabel_fecha}" for="fecha" />
                        <p:calendar id="fecha" pattern="MM/dd/yyyy" value="#{transaccionController.selected.fecha}" title="#{bundle.EditTransaccionTitle_fecha}" required="true" requiredMessage="#{bundle.EditTransaccionRequiredMessage_fecha}" showOn="button"/>

                        <p:outputLabel value="#{bundle.EditTransaccionLabel_totalMonto}" for="totalMonto" />
                        <p:inputText id="totalMonto" value="#{transaccionController.selected.totalMonto}" title="#{bundle.EditTransaccionTitle_totalMonto}" required="true" requiredMessage="#{bundle.EditTransaccionRequiredMessage_totalMonto}"/>

                        <p:outputLabel value="#{bundle.EditTransaccionLabel_creationDate}" for="creationDate" />
                        <p:calendar id="creationDate" pattern="MM/dd/yyyy HH:mm:ss" value="#{transaccionController.selected.creationDate}" title="#{bundle.EditTransaccionTitle_creationDate}" required="true" requiredMessage="#{bundle.EditTransaccionRequiredMessage_creationDate}" showOn="button"/>

                        <p:outputLabel value="#{bundle.EditTransaccionLabel_createdBy}" for="createdBy" />
                        <p:inputText id="createdBy" value="#{transaccionController.selected.createdBy}" title="#{bundle.EditTransaccionTitle_createdBy}" required="true" requiredMessage="#{bundle.EditTransaccionRequiredMessage_createdBy}"/>

                        <p:outputLabel value="#{bundle.EditTransaccionLabel_lastUpdateDate}" for="lastUpdateDate" />
                        <p:calendar id="lastUpdateDate" pattern="MM/dd/yyyy HH:mm:ss" value="#{transaccionController.selected.lastUpdateDate}" title="#{bundle.EditTransaccionTitle_lastUpdateDate}"  showOn="button"/>

                        <p:outputLabel value="#{bundle.EditTransaccionLabel_lastUpdateBy}" for="lastUpdateBy" />
                        <p:inputText id="lastUpdateBy" value="#{transaccionController.selected.lastUpdateBy}" title="#{bundle.EditTransaccionTitle_lastUpdateBy}" required="true" requiredMessage="#{bundle.EditTransaccionRequiredMessage_lastUpdateBy}"/>
                    </p:panelGrid>
                    <p:commandButton actionListener="#{transaccionController.save}" value="#{bundle.Save}" update="display,:TransaccionListForm:datalist,:growl" oncomplete="handleSubmit(xhr,status,args,TransaccionEditDialog);"/>
                    <p:commandButton value="#{bundle.Cancel}" onclick="TransaccionEditDialog.hide()"/>
                </h:panelGroup>

            </h:form>

        </p:dialog>

    </ui:composition>

</html>
